﻿using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;

namespace YiSha.Util.EChart
{

    /// <summary>
    /// EChart 类库
    /// </summary>
    public class EChartOption
    {
        /// <summary>
        /// 返回JSON对象
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            string json = string.Format("{0}", Newtonsoft.Json.JsonConvert.SerializeObject(this));
            return Regex.Replace(json, "\"\\w+\":null,{0,1}", string.Empty).Replace("{,", "{").Replace(",}", "}");
        }

        public EChartTitle title { get; set; }
        public EChartTooltip tooltip { get; set; }
        public EChartLegend legend { get; set; }
        public EChartToolbox toolbox { get; set; }
        public EChartGrid grid { get; set; }
        public List<EChartxAxis> xAxis { get; set; }
        public List<EChartyAxis> yAxis { get; set; }
        public List<EChartSeries> series { get; set; }
        public EChartItemStyle itemStyle { get; set; }
        /// <summary>
        /// 雷达图
        /// </summary>
        public EChartRadar radar { get; set; }
        public bool? calculable { get; set; }
        public bool? animation { get; set; }
        public EChartName name { get; set; }
        public ArrayList color { set; get; }
    }

 

  


  


 
 

  

  
  


   





  



  




}